import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { orderController } from './order.controller';
import { orderService } from './order.service';
import { Orders } from '../../entities/order.entity';
import { User } from '../../entities/user.entity';
import { WxApiModule } from '../../common/wxapi/wxapi.module';
import { UserModule } from '../user/user.module';
import { Goods } from 'src/entities/goods.entity';
import { Device } from 'src/entities/device.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([Orders, User, Goods, Device]),
    WxApiModule,
    UserModule,
  ],
  providers: [orderService],
  controllers: [orderController],
  exports: [orderService],
})
export class orderModule {}
